body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 10px;
}

p {
    text-align: center;
    color: #7f8c8d;
    margin: 3px;
}

.control-panel {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.file-selector, .track-selector, .serial-controls {
    margin-bottom: 15px;
}

label {
    display: inline-block;
    width: 100px;
    font-weight: bold;
}

input[type="file"] {
    display: none;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    min-width: 200px;
}

.status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    background-color: #e8f4fc;
}

.track-info, .serial-log {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.track-info h3, .serial-log h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

pre {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 200px;
    overflow-y: auto;
}

#serialLog {
    background-color: #2c3e50;
    color: #ecf0f1;
    font-family: monospace;
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    button {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    select {
        width: 100%;
    }
}